#include "SNR9816.h"
void USART4_SendData(u8 data)
{
	while((UART4->SR & 0X40) == 0);
	UART4->DR = data;
}
u8 snr9816ttsSaySentence(u8 *sentence, u8 len)
{
	unsigned int dat_len=0;
	USART4_SendData(0xFD);
	dat_len = len+1;
	USART4_SendData(dat_len>>8);
	USART4_SendData(dat_len);
	USART4_SendData(0x01);
	USART4_SendData(0x01);
	ALARM("%s",sentence);
}

SNR9816_t * snrCreate(void)
{
    static SNR9816_t snr;
    snr.PsoundPrint=snr9816ttsSaySentence;
    return &snr;
}
